package jp.dev7.hongo2.controller.admin.question;

import java.util.List;

import jp.dev7.hongo2.model.Question;
import jp.dev7.hongo2.service.QuestionService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class IndexController extends Controller {

    private QuestionService questionService = new QuestionService();

    @Override
    public Navigation run() throws Exception {

        List<Question> list = questionService.findAll();

        requestScope("list", list);

        return forward("index.jsp");
    }
}
